home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / AIncludes / Errors.a < prev    next >
Encoding:
Text File  |  1996-05-05  |  53.6 KB  |  1,044 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Errors.a
  3. ;
  4. ;    Contains:    OSErr codes.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 2.2.1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__ERRORS__') = 'UNDEFINED' THEN
  21. __ERRORS__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  25.     include 'ConditionalMacros.a'
  26.     ENDIF
  27.  
  28. paramErr                        EQU        -50                    ;error in user parameter list
  29. noHardwareErr                    EQU        -200                ;Sound Manager Error Returns
  30. notEnoughHardwareErr            EQU        -201                ;Sound Manager Error Returns
  31. userCanceledErr                    EQU        -128
  32. qErr                            EQU        -1                    ;queue element not found during deletion
  33. vTypErr                            EQU        -2                    ;invalid queue element
  34. corErr                            EQU        -3                    ;core routine number out of range
  35. unimpErr                        EQU        -4                    ;unimplemented core routine
  36. SlpTypeErr                        EQU        -5                    ;invalid queue element
  37. seNoDB                            EQU        -8                    ;no debugger installed to handle debugger command
  38. controlErr                        EQU        -17                    ;I/O System Errors
  39. statusErr                        EQU        -18                    ;I/O System Errors
  40. readErr                            EQU        -19                    ;I/O System Errors
  41. writErr                            EQU        -20                    ;I/O System Errors
  42. badUnitErr                        EQU        -21                    ;I/O System Errors
  43. unitEmptyErr                    EQU        -22                    ;I/O System Errors
  44. openErr                            EQU        -23                    ;I/O System Errors
  45. closErr                            EQU        -24                    ;I/O System Errors
  46. dRemovErr                        EQU        -25                    ;tried to remove an open driver
  47. dInstErr                        EQU        -26                    ;DrvrInstall couldn't find driver in resources
  48.  
  49. abortErr                        EQU        -27                    ;IO call aborted by KillIO
  50. iIOAbortErr                        EQU        -27                    ;IO abort error (Printing Manager)
  51. notOpenErr                        EQU        -28                    ;Couldn't rd/wr/ctl/sts cause driver not opened
  52. unitTblFullErr                    EQU        -29                    ;unit table has no more entries
  53. dceExtErr                        EQU        -30                    ;dce extension error
  54. slotNumErr                        EQU        -360                ;invalid slot # error
  55. gcrOnMFMErr                        EQU        -400                ;gcr format on high density media error
  56. dirFulErr                        EQU        -33                    ;Directory full
  57. dskFulErr                        EQU        -34                    ;disk full
  58. nsvErr                            EQU        -35                    ;no such volume
  59. ioErr                            EQU        -36                    ;I/O error (bummers)
  60. bdNamErr                        EQU        -37                    ;there may be no bad names in the final system!
  61. fnOpnErr                        EQU        -38                    ;File not open
  62. eofErr                            EQU        -39                    ;End of file
  63. posErr                            EQU        -40                    ;tried to position to before start of file (r/w)
  64. mFulErr                            EQU        -41                    ;memory full (open) or file won't fit (load)
  65. tmfoErr                            EQU        -42                    ;too many files open
  66. fnfErr                            EQU        -43                    ;File not found
  67. wPrErr                            EQU        -44                    ;diskette is write protected.
  68. fLckdErr                        EQU        -45                    ;file is locked
  69.  
  70. vLckdErr                        EQU        -46                    ;volume is locked
  71. fBsyErr                            EQU        -47                    ;File is busy (delete)
  72. dupFNErr                        EQU        -48                    ;duplicate filename (rename)
  73. opWrErr                            EQU        -49                    ;file already open with with write permission
  74. rfNumErr                        EQU        -51                    ;refnum error
  75. gfpErr                            EQU        -52                    ;get file position error
  76. volOffLinErr                    EQU        -53                    ;volume not on line error (was Ejected)
  77. permErr                            EQU        -54                    ;permissions error (on file open)
  78. volOnLinErr                        EQU        -55                    ;drive volume already on-line at MountVol
  79. nsDrvErr                        EQU        -56                    ;no such drive (tried to mount a bad drive num)
  80. noMacDskErr                        EQU        -57                    ;not a mac diskette (sig bytes are wrong)
  81. extFSErr                        EQU        -58                    ;volume in question belongs to an external fs
  82. fsRnErr                            EQU        -59                    ;file system internal error:during rename the old entry was deleted but could not be restored.
  83. badMDBErr                        EQU        -60                    ;bad master directory block
  84. wrPermErr                        EQU        -61                    ;write permissions error
  85. dirNFErr                        EQU        -120                ;Directory not found
  86. tmwdoErr                        EQU        -121                ;No free WDCB available
  87. badMovErr                        EQU        -122                ;Move into offspring error
  88. wrgVolTypErr                    EQU        -123                ;Wrong volume type error [operation not supported for MFS]
  89. volGoneErr                        EQU        -124                ;Server volume has been disconnected.
  90.  
  91. fidNotFound                        EQU        -1300                ;no file thread exists.
  92. fidExists                        EQU        -1301                ;file id already exists
  93. notAFileErr                        EQU        -1302                ;directory specified
  94. diffVolErr                        EQU        -1303                ;files on different volumes
  95. catChangedErr                    EQU        -1304                ;the catalog has been modified
  96. desktopDamagedErr                EQU        -1305                ;desktop database files are corrupted
  97. sameFileErr                        EQU        -1306                ;can't exchange a file with itself
  98. badFidErr                        EQU        -1307                ;file id is dangling or doesn't match with the file number
  99. notARemountErr                    EQU        -1308                ;when _Mount allows only remounts and doesn't get one
  100. fileBoundsErr                    EQU        -1309                ;file's EOF, offset, mark or size is too big
  101. fsDataTooBigErr                    EQU        -1310                ;file or volume is too big for system
  102. envNotPresent                    EQU        -5500                ;returned by glue.
  103. envBadVers                        EQU        -5501                ;Version non-positive
  104. envVersTooBig                    EQU        -5502                ;Version bigger than call can handle
  105. fontDecError                    EQU        -64                    ;error during font declaration
  106. fontNotDeclared                    EQU        -65                    ;font not declared
  107. fontSubErr                        EQU        -66                    ;font substitution occured
  108. fontNotOutlineErr                EQU        -32615                ;bitmap font passed to routine that does outlines only
  109. firstDskErr                        EQU        -84                    ;I/O System Errors
  110. lastDskErr                        EQU        -64                    ;I/O System Errors
  111. noDriveErr                        EQU        -64                    ;drive not installed
  112. offLinErr                        EQU        -65                    ;r/w requested for an off-line drive
  113. noNybErr                        EQU        -66                    ;couldn't find 5 nybbles in 200 tries
  114.  
  115. noAdrMkErr                        EQU        -67                    ;couldn't find valid addr mark
  116. dataVerErr                        EQU        -68                    ;read verify compare failed
  117. badCksmErr                        EQU        -69                    ;addr mark checksum didn't check
  118. badBtSlpErr                        EQU        -70                    ;bad addr mark bit slip nibbles
  119. noDtaMkErr                        EQU        -71                    ;couldn't find a data mark header
  120. badDCksum                        EQU        -72                    ;bad data mark checksum
  121. badDBtSlp                        EQU        -73                    ;bad data mark bit slip nibbles
  122. wrUnderrun                        EQU        -74                    ;write underrun occurred
  123. cantStepErr                        EQU        -75                    ;step handshake failed
  124. tk0BadErr                        EQU        -76                    ;track 0 detect doesn't change
  125. initIWMErr                        EQU        -77                    ;unable to initialize IWM
  126. twoSideErr                        EQU        -78                    ;tried to read 2nd side on a 1-sided drive
  127. spdAdjErr                        EQU        -79                    ;unable to correctly adjust disk speed
  128. seekErr                            EQU        -80                    ;track number wrong on address mark
  129. sectNFErr                        EQU        -81                    ;sector number never found on a track
  130. fmt1Err                            EQU        -82                    ;can't find sector 0 after track format
  131. fmt2Err                            EQU        -83                    ;can't get enough sync
  132. verErr                            EQU        -84                    ;track failed to verify
  133. clkRdErr                        EQU        -85                    ;unable to read same clock value twice
  134. clkWrErr                        EQU        -86                    ;time written did not verify
  135.  
  136. prWrErr                            EQU        -87                    ;parameter ram written didn't read-verify
  137. prInitErr                        EQU        -88                    ;InitUtil found the parameter ram uninitialized
  138. rcvrErr                            EQU        -89                    ;SCC receiver error (framing; parity; OR)
  139. breakRecd                        EQU        -90                    ;Break received (SCC)
  140. ;Power Manager Errors
  141. pmBusyErr                        EQU        -13000                ;Power Mgr never ready to start handshake
  142. pmReplyTOErr                    EQU        -13001                ;Timed out waiting for reply
  143. pmSendStartErr                    EQU        -13002                ;during send, pmgr did not start hs
  144. pmSendEndErr                    EQU        -13003                ;during send, pmgr did not finish hs
  145. pmRecvStartErr                    EQU        -13004                ;during receive, pmgr did not start hs
  146. pmRecvEndErr                    EQU        -13005                ;during receive, pmgr did not finish hs configured for this connection
  147. ; Printing Errors 
  148. iMemFullErr                        EQU        -108
  149. iIOAbort                        EQU        -27
  150. ;Scrap Manager errors
  151. noScrapErr                        EQU        -100                ;No scrap exists error
  152. noTypeErr                        EQU        -102                ;No object of that type in scrap
  153. memROZWarn                        EQU        -99                    ;soft error in ROZ
  154. memROZError                        EQU        -99                    ;hard error in ROZ
  155. memROZErr                        EQU        -99                    ;hard error in ROZ
  156. memFullErr                        EQU        -108                ;Not enough room in heap zone
  157. nilHandleErr                    EQU        -109                ;Master Pointer was NIL in HandleZone or other
  158. memWZErr                        EQU        -111                ;WhichZone failed (applied to free block)
  159. memPurErr                        EQU        -112                ;trying to purge a locked or non-purgeable block
  160. memAdrErr                        EQU        -110                ;address was odd; or out of range
  161.  
  162. memAZErr                        EQU        -113                ;Address in zone check failed
  163. memPCErr                        EQU        -114                ;Pointer Check failed
  164. memBCErr                        EQU        -115                ;Block Check failed
  165. memSCErr                        EQU        -116                ;Size Check failed
  166. memLockedErr                    EQU        -117                ;trying to move a locked block (MoveHHi)
  167. resourceInMemory                EQU        -188                ;Resource already in memory
  168. writingPastEnd                    EQU        -189                ;Writing past end of file
  169. inputOutOfBounds                EQU        -190                ;Offset of Count out of bounds
  170. resNotFound                        EQU        -192                ;Resource not found
  171. resFNotFound                    EQU        -193                ;Resource file not found
  172. addResFailed                    EQU        -194                ;AddResource failed
  173. addRefFailed                    EQU        -195                ;AddReference failed
  174. rmvResFailed                    EQU        -196                ;RmveResource failed
  175. rmvRefFailed                    EQU        -197                ;RmveReference failed
  176. resAttrErr                        EQU        -198                ;attribute inconsistent with operation
  177. mapReadErr                        EQU        -199                ;map inconsistent with operation
  178. CantDecompress                    EQU        -186                ;resource bent ("the bends") - can't decompress a compressed resource
  179. badExtResource                    EQU        -185                ;extended resource has a bad format.
  180. evtNotEnb                        EQU        1                    ;event not enabled at PostEvent
  181. noMemForPictPlaybackErr            EQU        -145
  182. rgnOverflowErr                    EQU        -147
  183. rgnTooBigError                    EQU        -147
  184. pixMapTooDeepErr                EQU        -148
  185. insufficientStackErr            EQU        -149
  186. nsStackErr                        EQU        -149
  187.  
  188. ; OffScreen QuickDraw Errors 
  189. cMatchErr                        EQU        -150                ;Color2Index failed to find an index
  190. cTempMemErr                        EQU        -151                ;failed to allocate memory for temporary structures
  191. cNoMemErr                        EQU        -152                ;failed to allocate memory for structure
  192. cRangeErr                        EQU        -153                ;range error on colorTable request
  193. cProtectErr                        EQU        -154                ;colorTable entry protection violation
  194. cDevErr                            EQU        -155                ;invalid type of graphics device
  195. cResErr                            EQU        -156                ;invalid resolution for MakeITable
  196. cDepthErr                        EQU        -157                ;invalid pixel depth 
  197. rgnTooBigErr                    EQU        -500
  198. updPixMemErr                    EQU        -125                ;insufficient memory to update a pixmap
  199. pictInfoVersionErr                EQU        -11000                ;wrong version of the PictInfo structure
  200. pictInfoIDErr                    EQU        -11001                ;the internal consistancy check for the PictInfoID is wrong
  201. pictInfoVerbErr                    EQU        -11002                ;the passed verb was invalid
  202. cantLoadPickMethodErr            EQU        -11003                ;unable to load the custom pick proc
  203. colorsRequestedErr                EQU        -11004                ;the number of colors requested was illegal
  204. pictureDataErr                    EQU        -11005                ;the picture data was invalid
  205. ;Sound Manager errors
  206. noHardware                        EQU        noHardwareErr        ;obsolete spelling
  207. notEnoughHardware                EQU        notEnoughHardwareErr ;obsolete spelling
  208. queueFull                        EQU        -203                ;Sound Manager Error Returns
  209. resProblem                        EQU        -204                ;Sound Manager Error Returns
  210. badChannel                        EQU        -205                ;Sound Manager Error Returns
  211.  
  212. badFormat                        EQU        -206                ;Sound Manager Error Returns
  213. notEnoughBufferSpace            EQU        -207                ;could not allocate enough memory
  214. badFileFormat                    EQU        -208                ;was not type AIFF or was of bad format,corrupt
  215. channelBusy                        EQU        -209                ;the Channel is being used for a PFD already
  216. buffersTooSmall                    EQU        -210                ;can not operate in the memory allowed
  217. channelNotBusy                    EQU        -211
  218. noMoreRealTime                    EQU        -212                ;not enough CPU cycles left to add another task
  219. siNoSoundInHardware                EQU        -220                ;no Sound Input hardware
  220. siBadSoundInDevice                EQU        -221                ;invalid index passed to SoundInGetIndexedDevice
  221. siNoBufferSpecified                EQU        -222                ;returned by synchronous SPBRecord if nil buffer passed
  222. siInvalidCompression            EQU        -223                ;invalid compression type
  223. siHardDriveTooSlow                EQU        -224                ;hard drive too slow to record to disk
  224. siInvalidSampleRate                EQU        -225                ;invalid sample rate
  225. siInvalidSampleSize                EQU        -226                ;invalid sample size
  226. siDeviceBusyErr                    EQU        -227                ;input device already in use
  227. siBadDeviceName                    EQU        -228                ;input device could not be opened
  228. siBadRefNum                        EQU        -229                ;invalid input device reference number
  229. siInputDeviceErr                EQU        -230                ;input device hardware failure
  230. siUnknownInfoType                EQU        -231                ;invalid info type selector (returned by driver)
  231. siUnknownQuality                EQU        -232                ;invalid quality selector (returned by driver)
  232.  
  233. ;Speech Manager errors
  234. noSynthFound                    EQU        -240
  235. synthOpenFailed                    EQU        -241
  236. synthNotReady                    EQU        -242
  237. bufTooSmall                        EQU        -243
  238. voiceNotFound                    EQU        -244
  239. incompatibleVoice                EQU        -245
  240. badDictFormat                    EQU        -246
  241. badInputText                    EQU        -247
  242.  
  243. ; Midi Manager Errors: 
  244. midiNoClientErr                    EQU        -250                ;no client with that ID found
  245. midiNoPortErr                    EQU        -251                ;no port with that ID found
  246. midiTooManyPortsErr                EQU        -252                ;too many ports already installed in the system
  247. midiTooManyConsErr                EQU        -253                ;too many connections made
  248. midiVConnectErr                    EQU        -254                ;pending virtual connection created
  249. midiVConnectMade                EQU        -255                ;pending virtual connection resolved
  250. midiVConnectRmvd                EQU        -256                ;pending virtual connection removed
  251. midiNoConErr                    EQU        -257                ;no connection exists between specified ports
  252. midiWriteErr                    EQU        -258                ;MIDIWritePacket couldn't write to all connected ports
  253. midiNameLenErr                    EQU        -259                ;name supplied is longer than 31 characters
  254. midiDupIDErr                    EQU        -260                ;duplicate client ID
  255. midiInvalidCmdErr                EQU        -261                ;command not supported for port type
  256.  
  257. ;Notification Manager errors
  258. nmTypErr                        EQU        -299                ;wrong queue type
  259. siInitSDTblErr                    EQU        1                    ;slot int dispatch table could not be initialized.
  260. siInitVBLQsErr                    EQU        2                    ;VBLqueues for all slots could not be initialized.
  261. siInitSPTblErr                    EQU        3                    ;slot priority table could not be initialized.
  262. sdmJTInitErr                    EQU        10                    ;SDM Jump Table could not be initialized.
  263. sdmInitErr                        EQU        11                    ;SDM could not be initialized.
  264. sdmSRTInitErr                    EQU        12                    ;Slot Resource Table could not be initialized.
  265. sdmPRAMInitErr                    EQU        13                    ;Slot PRAM could not be initialized.
  266. sdmPriInitErr                    EQU        14                    ;Cards could not be initialized.
  267. smSDMInitErr                    EQU        -290                ;Error; SDM could not be initialized.
  268. smSRTInitErr                    EQU        -291                ;Error; Slot Resource Table could not be initialized.
  269. smPRAMInitErr                    EQU        -292                ;Error; Slot Resource Table could not be initialized.
  270. smPriInitErr                    EQU        -293                ;Error; Cards could not be initialized.
  271. smEmptySlot                        EQU        -300                ;No card in slot
  272. smCRCFail                        EQU        -301                ;CRC check failed for declaration data
  273. smFormatErr                        EQU        -302                ;FHeader Format is not Apple's
  274. smRevisionErr                    EQU        -303                ;Wrong revison level
  275. smNoDir                            EQU        -304                ;Directory offset is Nil
  276. smDisabledSlot                    EQU        -305                ;This slot is disabled (-305 use to be smLWTstBad)
  277. smNosInfoArray                    EQU        -306                ;No sInfoArray. Memory Mgr error.
  278.  
  279. ;Dictionary Manager errors
  280. notBTree                        EQU        -410                ;The file is not a dictionary.
  281. btNoSpace                        EQU        -413                ;Can't allocate disk space.
  282. btDupRecErr                        EQU        -414                ;Record already exists.
  283. btRecNotFnd                        EQU        -415                ;Record cannot be found.
  284. btKeyLenErr                        EQU        -416                ;Maximum key length is too long or equal to zero.
  285. btKeyAttrErr                    EQU        -417                ;There is no such a key attribute.
  286. unknownInsertModeErr            EQU        -20000                ;There is no such an insert mode.
  287. recordDataTooBigErr                EQU        -20001                ;The record data is bigger than buffer size (1024 bytes).
  288. invalidIndexErr                    EQU        -20002                ;The recordIndex parameter is not valid.
  289.  
  290. smResrvErr                        EQU        -307                ;Fatal reserved error. Resreved field <> 0.
  291. smUnExBusErr                    EQU        -308                ;Unexpected BusError
  292. smBLFieldBad                    EQU        -309                ;ByteLanes field was bad.
  293. smFHBlockRdErr                    EQU        -310                ;Error occured during _sGetFHeader.
  294. smFHBlkDispErr                    EQU        -311                ;Error occured during _sDisposePtr (Dispose of FHeader block).
  295. smDisposePErr                    EQU        -312                ;_DisposePointer error
  296. smNoBoardSRsrc                    EQU        -313                ;No Board sResource.
  297. smGetPRErr                        EQU        -314                ;Error occured during _sGetPRAMRec (See SIMStatus).
  298. smNoBoardId                        EQU        -315                ;No Board Id.
  299. smInitStatVErr                    EQU        -316                ;The InitStatusV field was negative after primary or secondary init.
  300. smInitTblVErr                    EQU        -317                ;An error occured while trying to initialize the Slot Resource Table.
  301. smNoJmpTbl                        EQU        -318                ;SDM jump table could not be created.
  302. smReservedSlot                    EQU        -318                ;slot is reserved, VM should not use this address space.
  303. smBadBoardId                    EQU        -319                ;BoardId was wrong; re-init the PRAM record.
  304. smBusErrTO                        EQU        -320                ;BusError time out.
  305. ;The following errors are for primary or secondary init code.  The errors are logged in the
  306. ;vendor status field of the sInfo record.  Normally the vendor error is not Apple's concern,
  307. ;but a special error is needed to patch secondary inits.
  308. svTempDisable                    EQU        -32768                ;Temporarily disable card but run primary init.
  309. svDisabled                        EQU        -32640                ;Reserve range -32640 to -32768 for Apple temp disables.
  310. smBadRefId                        EQU        -330                ;Reference Id not found in List
  311. smBadsList                        EQU        -331                ;Bad sList: Id1 < Id2 < Id3 ...format is not followed.
  312. smReservedErr                    EQU        -332                ;Reserved field not zero
  313. smCodeRevErr                    EQU        -333                ;Code revision is wrong
  314.  
  315. smCPUErr                        EQU        -334                ;Code revision is wrong
  316. smsPointerNil                    EQU        -335                ;LPointer is nil From sOffsetData. If this error occurs; check sInfo rec for more information.
  317. smNilsBlockErr                    EQU        -336                ;Nil sBlock error (Dont allocate and try to use a nil sBlock)
  318. smSlotOOBErr                    EQU        -337                ;Slot out of bounds error
  319. smSelOOBErr                        EQU        -338                ;Selector out of bounds error
  320. smNewPErr                        EQU        -339                ;_NewPtr error
  321. smBlkMoveErr                    EQU        -340                ;_BlockMove error
  322. smCkStatusErr                    EQU        -341                ;Status of slot = fail.
  323. smGetDrvrNamErr                    EQU        -342                ;Error occured during _sGetDrvrName.
  324. smDisDrvrNamErr                    EQU        -343                ;Error occured during _sDisDrvrName.
  325. smNoMoresRsrcs                    EQU        -344                ;No more sResources
  326. smsGetDrvrErr                    EQU        -345                ;Error occurred during _sGetDriver.
  327. smBadsPtrErr                    EQU        -346                ;Bad pointer was passed to sCalcsPointer
  328. smByteLanesErr                    EQU        -347                ;NumByteLanes was determined to be zero.
  329. smOffsetErr                        EQU        -348                ;Offset was too big (temporary error
  330. smNoGoodOpens                    EQU        -349                ;No opens were successfull in the loop.
  331. smSRTOvrFlErr                    EQU        -350                ;SRT over flow.
  332. smRecNotFnd                        EQU        -351                ;Record not found in the SRT.
  333. editionMgrInitErr                EQU        -450                ;edition manager not inited by this app
  334. badSectionErr                    EQU        -451                ;not a valid SectionRecord
  335.  
  336. notRegisteredSectionErr            EQU        -452                ;not a registered SectionRecord
  337. badEditionFileErr                EQU        -453                ;edition file is corrupt
  338. badSubPartErr                    EQU        -454                ;can not use sub parts in this release
  339. multiplePublisherWrn            EQU        -460                ;A Publisher is already registered for that container
  340. containerNotFoundWrn            EQU        -461                ;could not find editionContainer at this time
  341. containerAlreadyOpenWrn            EQU        -462                ;container already opened by this section
  342. notThePublisherWrn                EQU        -463                ;not the first registered publisher for that container
  343. teScrapSizeErr                    EQU        -501                ;scrap item too big for text edit record
  344. hwParamErr                        EQU        -502                ;bad selector for _HWPriv
  345. ;Process Manager errors
  346. procNotFound                    EQU        -600                ;no eligible process with specified descriptor
  347. memFragErr                        EQU        -601                ;not enough room to launch app w/special requirements
  348. appModeErr                        EQU        -602                ;memory mode is 32-bit, but app not 32-bit clean
  349. protocolErr                        EQU        -603                ;app made module calls in improper order
  350. hardwareConfigErr                EQU        -604                ;hardware configuration not correct for call
  351. appMemFullErr                    EQU        -605                ;application SIZE not big enough for launch
  352. appIsDaemon                        EQU        -606                ;app is BG-only, and launch flags disallow this
  353. bufferIsSmall                    EQU        -607                ;error returns from Post and Accept 
  354. noOutstandingHLE                EQU        -608
  355. connectionInvalid                EQU        -609
  356. noUserInteractionAllowed        EQU        -610                ; no user interaction allowed 
  357.  
  358. ; Thread Manager Error Codes 
  359. threadTooManyReqsErr            EQU        -617
  360. threadNotFoundErr                EQU        -618
  361. threadProtocolErr                EQU        -619
  362.  
  363. ;MemoryDispatch errors
  364. notEnoughMemoryErr                EQU        -620                ;insufficient physical memory
  365. notHeldErr                        EQU        -621                ;specified range of memory is not held
  366. cannotMakeContiguousErr            EQU        -622                ;cannot make specified range contiguous
  367. notLockedErr                    EQU        -623                ;specified range of memory is not locked
  368. interruptsMaskedErr                EQU        -624                ;don’t call with interrupts masked
  369. cannotDeferErr                    EQU        -625                ;unable to defer additional functions
  370. noMMUErr                        EQU        -626                ;no MMU present
  371.  
  372. ddpSktErr                        EQU        -91                    ;error in soket number
  373. ddpLenErr                        EQU        -92                    ;data length too big
  374. noBridgeErr                        EQU        -93                    ;no network bridge for non-local send
  375. lapProtErr                        EQU        -94                    ;error in attaching/detaching protocol
  376. excessCollsns                    EQU        -95                    ;excessive collisions on write
  377. portNotPwr                        EQU        -96                    ;serial port not currently powered
  378. portInUse                        EQU        -97                    ;driver Open error code (port is in use)
  379. portNotCf                        EQU        -98                    ;driver Open error code (parameter RAM not configured for this connection)
  380.  
  381. ;Help Mgr error range: -850 to -874
  382. hmHelpDisabled                    EQU        -850                ; Show Balloons mode was off, call to routine ignored 
  383. hmBalloonAborted                EQU        -853                ; Returned if mouse was moving or mouse wasn't in window port rect 
  384. hmSameAsLastBalloon                EQU        -854                ; Returned from HMShowMenuBalloon if menu & item is same as last time 
  385. hmHelpManagerNotInited            EQU        -855                ; Returned from HMGetHelpMenuHandle if help menu not setup 
  386. hmSkippedBalloon                EQU        -857                ; Returned from calls if helpmsg specified a skip balloon 
  387. hmWrongVersion                    EQU        -858                ; Returned if help mgr resource was the wrong version 
  388. hmUnknownHelpType                EQU        -859                ; Returned if help msg record contained a bad type 
  389. hmOperationUnsupported            EQU        -861                ; Returned from HMShowBalloon call if bad method passed to routine 
  390. hmNoBalloonUp                    EQU        -862                ; Returned from HMRemoveBalloon if no balloon was visible when call was made 
  391. hmCloseViewActive                EQU        -863                ; Returned from HMRemoveBalloon if CloseView was active 
  392.  
  393. nbpBuffOvr                        EQU        -1024                ;Buffer overflow in LookupName
  394. nbpNoConfirm                    EQU        -1025
  395. nbpConfDiff                        EQU        -1026                ;Name confirmed at different socket
  396. nbpDuplicate                    EQU        -1027                ;Duplicate name exists already
  397. nbpNotFound                        EQU        -1028                ;Name not found on remove
  398. nbpNISErr                        EQU        -1029                ;Error trying to open the NIS
  399. aspBadVersNum                    EQU        -1066                ;Server cannot support this ASP version
  400. aspBufTooSmall                    EQU        -1067                ;Buffer too small
  401. aspNoMoreSess                    EQU        -1068                ;No more sessions on server
  402. aspNoServers                    EQU        -1069                ;No servers at that address
  403. aspParamErr                        EQU        -1070                ;Parameter error
  404.  
  405. aspServerBusy                    EQU        -1071                ;Server cannot open another session
  406. aspSessClosed                    EQU        -1072                ;Session closed
  407. aspSizeErr                        EQU        -1073                ;Command block too big
  408. aspTooMany                        EQU        -1074                ;Too many clients (server error)
  409. aspNoAck                        EQU        -1075                ;No ack on attention request (server err)
  410. reqFailed                        EQU        -1096
  411. tooManyReqs                        EQU        -1097
  412. tooManySkts                        EQU        -1098
  413. badATPSkt                        EQU        -1099
  414. badBuffNum                        EQU        -1100
  415. noRelErr                        EQU        -1101
  416. cbNotFound                        EQU        -1102
  417. noSendResp                        EQU        -1103
  418. noDataArea                        EQU        -1104
  419. reqAborted                        EQU        -1105
  420.  
  421. ; ADSP Error Codes 
  422. ; driver control ioResults 
  423. errRefNum                        EQU        -1280                ; bad connection refNum 
  424. errAborted                        EQU        -1279                ; control call was aborted 
  425. errState                        EQU        -1278                ; bad connection state for this operation 
  426. errOpening                        EQU        -1277                ; open connection request failed 
  427. errAttention                    EQU        -1276                ; attention message too long 
  428. errFwdReset                        EQU        -1275                ; read terminated by forward reset 
  429. errDSPQueueSize                    EQU        -1274                ; DSP Read/Write Queue Too small 
  430. errOpenDenied                    EQU        -1273                ; open connection request was denied 
  431.  
  432. ;***    OSL ERROR CODES            ***
  433. errAEImpossibleRange            EQU        -1720                ; A range like 3rd to 2nd, or 1st to all. 
  434. errAEWrongNumberArgs            EQU        -1721                ; Logical op kAENOT used with other than 1 term 
  435. errAEAccessorNotFound            EQU        -1723                ; Accessor proc matching wantClass and containerType or wildcards not found 
  436. errAENoSuchLogical                EQU        -1725                ; Something other than AND, OR, or NOT 
  437. errAEBadTestKey                    EQU        -1726                ; Test is neither typeLogicalDescriptor nor typeCompDescriptor 
  438. errAENotAnObjSpec                EQU        -1727                ; Param to AEResolve not of type 'obj ' 
  439. errAENoSuchObject                EQU        -1728                ; e.g.,: specifier asked for the 3rd, but there are only 2. Basically, this indicates a run-time resolution error. 
  440. errAENegativeCount                EQU        -1729                ; CountProc returned negative value 
  441. errAEEmptyListContainer            EQU        -1730                ; Attempt to pass empty list as container to accessor 
  442.  
  443. ;--------------------------------------------------------------
  444. ;        Apple event manager error messages
  445. ;--------------------------------------------------------------
  446. errAECoercionFail                EQU        -1700                ; bad parameter data or unable to coerce the data supplied 
  447. errAEDescNotFound                EQU        -1701
  448. errAECorruptData                EQU        -1702
  449. errAEWrongDataType                EQU        -1703
  450. errAENotAEDesc                    EQU        -1704
  451. errAEBadListItem                EQU        -1705                ; the specified list item does not exist 
  452. errAENewerVersion                EQU        -1706                ; need newer version of the AppleEvent manager 
  453. errAENotAppleEvent                EQU        -1707                ; the event is not in AppleEvent format 
  454. errAEEventNotHandled            EQU        -1708                ; the AppleEvent was not handled by any handler 
  455. errAEReplyNotValid                EQU        -1709                ; AEResetTimer was passed an invalid reply parameter 
  456. errAEUnknownSendMode            EQU        -1710                ; mode wasn't NoReply, WaitReply, or QueueReply or Interaction level is unknown 
  457. errAEWaitCanceled                EQU        -1711                ; in AESend, the user cancelled out of wait loop for reply or receipt 
  458. errAETimeout                    EQU        -1712                ; the AppleEvent timed out 
  459. errAENoUserInteraction            EQU        -1713                ; no user interaction is allowed 
  460. errAENotASpecialFunction        EQU        -1714                ; there is no special function for/with this keyword 
  461. errAEParamMissed                EQU        -1715                ; a required parameter was not accessed 
  462. errAEUnknownAddressType            EQU        -1716                ; the target address type is not known 
  463. errAEHandlerNotFound            EQU        -1717                ; no handler in the dispatch tables fits the parameters to AEGetEventHandler or AEGetCoercionHandler 
  464. errAEReplyNotArrived            EQU        -1718                ; the contents of the reply you are accessing have not arrived yet 
  465. errAEIllegalIndex                EQU        -1719                ; index is out of range in a put operation 
  466. errAEUnknownObjectType            EQU        -1731                ; available only in version 1.0.1 or greater 
  467. errAERecordingIsAlreadyOn        EQU        -1732                ; available only in version 1.0.1 or greater 
  468.  
  469. ;*************************************************************************
  470. ;    API Errors
  471. ;*************************************************************************
  472. errOSASystemError                EQU        -1750
  473. errOSAInvalidID                    EQU        -1751
  474. errOSABadStorageType            EQU        -1752
  475. errOSAScriptError                EQU        -1753
  476. errOSABadSelector                EQU        -1754
  477. errOSASourceNotAvailable        EQU        -1756
  478. errOSANoSuchDialect                EQU        -1757
  479. errOSADataFormatObsolete        EQU        -1758
  480. errOSADataFormatTooNew            EQU        -1759
  481. errOSACorruptData                EQU        errAECorruptData
  482. errOSARecordingIsAlreadyOn        EQU        errAERecordingIsAlreadyOn
  483. errOSAComponentMismatch            EQU        -1761                ; Parameters are from 2 different components 
  484. errOSACantOpenComponent            EQU        -1762                ; Can't connect to scripting system with that ID 
  485.  
  486. ;QuickTime errors
  487. couldNotResolveDataRef            EQU        -2000
  488. badImageDescription                EQU        -2001
  489. badPublicMovieAtom                EQU        -2002
  490. cantFindHandler                    EQU        -2003
  491. cantOpenHandler                    EQU        -2004
  492. badComponentType                EQU        -2005
  493. noMediaHandler                    EQU        -2006
  494. noDataHandler                    EQU        -2007
  495. invalidMedia                    EQU        -2008
  496. invalidTrack                    EQU        -2009
  497. invalidMovie                    EQU        -2010
  498. invalidSampleTable                EQU        -2011
  499. invalidDataRef                    EQU        -2012
  500. invalidHandler                    EQU        -2013
  501. invalidDuration                    EQU        -2014
  502. invalidTime                        EQU        -2015
  503. cantPutPublicMovieAtom            EQU        -2016
  504. badEditList                        EQU        -2017
  505. mediaTypesDontMatch                EQU        -2018
  506. progressProcAborted                EQU        -2019
  507. movieToolboxUninitialized        EQU        -2020
  508. noRecordOfApp                    EQU        movieToolboxUninitialized ; replica 
  509. wfFileNotFound                    EQU        -2021
  510. cantCreateSingleForkFile        EQU        -2022                ; happens when file already exists 
  511. invalidEditState                EQU        -2023
  512. nonMatchingEditState            EQU        -2024
  513. staleEditState                    EQU        -2025
  514. userDataItemNotFound            EQU        -2026
  515. maxSizeToGrowTooSmall            EQU        -2027
  516. badTrackIndex                    EQU        -2028
  517. trackIDNotFound                    EQU        -2029
  518. trackNotInMovie                    EQU        -2030
  519. timeNotInTrack                    EQU        -2031
  520. timeNotInMedia                    EQU        -2032
  521. badEditIndex                    EQU        -2033
  522. internalQuickTimeError            EQU        -2034
  523. cantEnableTrack                    EQU        -2035
  524. invalidRect                        EQU        -2036
  525. invalidSampleNum                EQU        -2037
  526. invalidChunkNum                    EQU        -2038
  527. invalidSampleDescIndex            EQU        -2039
  528. invalidChunkCache                EQU        -2040
  529. invalidSampleDescription        EQU        -2041
  530. dataNotOpenForRead                EQU        -2042
  531. dataNotOpenForWrite                EQU        -2043
  532. dataAlreadyOpenForWrite            EQU        -2044
  533. dataAlreadyClosed                EQU        -2045
  534. endOfDataReached                EQU        -2046
  535. dataNoDataRef                    EQU        -2047
  536. noMovieFound                    EQU        -2048
  537. invalidDataRefContainer            EQU        -2049
  538. badDataRefIndex                    EQU        -2050
  539. noDefaultDataRef                EQU        -2051
  540. couldNotUseAnExistingSample        EQU        -2052
  541. featureUnsupported                EQU        -2053
  542. noVideoTrackInMovieErr            EQU        -2054                ; QT for Windows error 
  543. noSoundTrackInMovieErr            EQU        -2055                ; QT for Windows error 
  544. soundSupportNotAvailableErr        EQU        -2056                ; QT for Windows error 
  545. unsupportedAuxiliaryImportData    EQU        -2057
  546. auxiliaryExportDataUnavailable    EQU        -2058
  547. samplesAlreadyInMediaErr        EQU        -2059
  548. movieTextNotFoundErr            EQU        -2062
  549.  
  550. digiUnimpErr                    EQU        -2201                ; feature unimplemented 
  551. qtParamErr                        EQU        -2202                ; bad input parameter (out of range, etc) 
  552. matrixErr                        EQU        -2203                ; bad matrix, digitizer did nothing 
  553. notExactMatrixErr                EQU        -2204                ; warning of bad matrix, digitizer did its best 
  554. noMoreKeyColorsErr                EQU        -2205                ; all key indexes in use 
  555. notExactSizeErr                    EQU        -2206                ; Can’t do exact size requested 
  556. badDepthErr                        EQU        -2207                ; Can’t digitize into this depth 
  557. noDMAErr                        EQU        -2208                ; Can’t do DMA digitizing (i.e. can't go to requested dest 
  558. badCallOrderErr                    EQU        -2209                ; Usually due to a status call being called prior to being setup first 
  559.  
  560. ;*************************************************************************
  561. ;    Script Error Codes
  562. ;*************************************************************************
  563. ; Runtime errors: 
  564. errASCantConsiderAndIgnore        EQU        -2720
  565. errASCantCompareMoreThan32k        EQU        -2721
  566. ; Parser/Compiler errors: 
  567. errASTerminologyNestingTooDeep    EQU        -2760
  568. errASIllegalFormalParameter        EQU        -2761
  569. errASParameterNotForEvent        EQU        -2762
  570. errASNoResultReturned            EQU        -2763
  571. ;     Dialect specific script errors:
  572. ;     The range -2780 thru -2799 is reserved for dialect specific error codes.
  573. ;     (Error codes from different dialects may overlap.)
  574. ;
  575. ;    English errors:
  576. ;
  577. errASInconsistentNames            EQU        -2780
  578.  
  579. ;Component Manager & component errors
  580. invalidComponentID                EQU        -3000
  581. validInstancesExist                EQU        -3001
  582. componentNotCaptured            EQU        -3002
  583. componentDontRegister            EQU        -3003
  584.  
  585. ; Color Picker errors
  586. firstPickerError                EQU        -4000
  587. invalidPickerType                EQU        firstPickerError
  588. requiredFlagsDontMatch            EQU        -4001
  589. pickerResourceError                EQU        -4002
  590. cantLoadPicker                    EQU        -4003
  591. cantCreatePickerWindow            EQU        -4004
  592. cantLoadPackage                    EQU        -4005
  593. pickerCantLive                    EQU        -4006
  594. colorSyncNotInstalled            EQU        -4007
  595. badProfileError                    EQU        -4008
  596. noHelpForItem                    EQU        -4009
  597.  
  598. codecErr                        EQU        -8960
  599. noCodecErr                        EQU        -8961
  600. codecUnimpErr                    EQU        -8962
  601. codecSizeErr                    EQU        -8963
  602. codecScreenBufErr                EQU        -8964
  603. codecImageBufErr                EQU        -8965
  604. codecSpoolErr                    EQU        -8966
  605. codecAbortErr                    EQU        -8967
  606. codecWouldOffscreenErr            EQU        -8968
  607. codecBadDataErr                    EQU        -8969
  608. codecDataVersErr                EQU        -8970
  609. codecExtensionNotFoundErr        EQU        -8971
  610. scTypeNotFoundErr                EQU        codecExtensionNotFoundErr
  611. codecConditionErr                EQU        -8972
  612. codecOpenErr                    EQU        -8973
  613. codecCantWhenErr                EQU        -8974
  614. codecCantQueueErr                EQU        -8975
  615. codecNothingToBlitErr            EQU        -8976
  616. noDeviceForChannel                EQU        -9400
  617. grabTimeComplete                EQU        -9401
  618. cantDoThatInCurrentMode            EQU        -9402
  619. notEnoughMemoryToGrab            EQU        -9403
  620. notEnoughDiskSpaceToGrab        EQU        -9404
  621. couldntGetRequiredComponent        EQU        -9405
  622. badSGChannel                    EQU        -9406
  623. seqGrabInfoNotAvailable            EQU        -9407
  624. deviceCantMeetRequest            EQU        -9408
  625. badControllerHeight                EQU        -9994
  626. editingNotAllowed                EQU        -9995
  627. controllerBoundsNotExact        EQU        -9996
  628. cannotSetWidthOfAttachedController EQU        -9997
  629. controllerHasFixedHeight        EQU        -9998
  630. cannotMoveAttachedController    EQU        -9999
  631.  
  632. ; AERegistry Errors 
  633. errAEBadKeyForm                    EQU        -10002
  634. errAECantHandleClass            EQU        -10010
  635. errAECantSupplyType                EQU        -10009
  636. errAECantUndo                    EQU        -10015
  637. errAEEventFailed                EQU        -10000
  638. errAEIndexTooLarge                EQU        -10007
  639. errAEInTransaction                EQU        -10011
  640. errAELocalOnly                    EQU        -10016
  641. errAENoSuchTransaction            EQU        -10012
  642. errAENotAnElement                EQU        -10008
  643. errAENotASingleObject            EQU        -10014
  644. errAENotModifiable                EQU        -10003
  645. errAENoUserSelection            EQU        -10013
  646. errAEPrivilegeError                EQU        -10004
  647. errAEReadDenied                    EQU        -10005
  648. errAETypeError                    EQU        -10001
  649. errAEWriteDenied                EQU        -10006
  650.  
  651. ; TELErr 
  652. telGenericError                    EQU        -1
  653. telNoErr                        EQU        0
  654. telNoTools                        EQU        8                    ; no telephone tools found in extension folder 
  655. telBadTermErr                    EQU        -10001                ; invalid TELHandle or handle not found
  656. telBadDNErr                        EQU        -10002                ; TELDNHandle not found or invalid 
  657. telBadCAErr                        EQU        -10003                ; TELCAHandle not found or invalid 
  658. telBadHandErr                    EQU        -10004                ; bad handle specified 
  659. telBadProcErr                    EQU        -10005                ; bad msgProc specified 
  660. telCAUnavail                    EQU        -10006                ; a CA is not available 
  661. telNoMemErr                        EQU        -10007                ; no memory to allocate handle 
  662. telNoOpenErr                    EQU        -10008                ; unable to open terminal 
  663. telBadHTypeErr                    EQU        -10010                ; bad hook type specified 
  664. telHTypeNotSupp                    EQU        -10011                ; hook type not supported by this tool 
  665. telBadLevelErr                    EQU        -10012                ; bad volume level setting 
  666. telBadVTypeErr                    EQU        -10013                ; bad volume type error 
  667. telVTypeNotSupp                    EQU        -10014                ; volume type not supported by this tool
  668. telBadAPattErr                    EQU        -10015                ; bad alerting pattern specified 
  669. telAPattNotSupp                    EQU        -10016                ; alerting pattern not supported by tool
  670. telBadIndex                        EQU        -10017                ; bad index specified 
  671. telIndexNotSupp                    EQU        -10018                ; index not supported by this tool 
  672. telBadStateErr                    EQU        -10019                ; bad device state specified 
  673. telStateNotSupp                    EQU        -10020                ; device state not supported by tool 
  674. telBadIntExt                    EQU        -10021                ; bad internal external error 
  675. telIntExtNotSupp                EQU        -10022                ; internal external type not supported by this tool 
  676. telBadDNDType                    EQU        -10023                ; bad DND type specified 
  677. telDNDTypeNotSupp                EQU        -10024                ; DND type is not supported by this tool 
  678. telFeatNotSub                    EQU        -10030                ; feature not subscribed 
  679. telFeatNotAvail                    EQU        -10031                ; feature subscribed but not available 
  680. telFeatActive                    EQU        -10032                ; feature already active 
  681. telFeatNotSupp                    EQU        -10033                ; feature program call not supported by this tool 
  682. telConfLimitErr                    EQU        -10040                ; limit specified is too high for this configuration 
  683. telConfNoLimit                    EQU        -10041                ; no limit was specified but required
  684. telConfErr                        EQU        -10042                ; conference was not prepared 
  685. telConfRej                        EQU        -10043                ; conference request was rejected 
  686. telTransferErr                    EQU        -10044                ; transfer not prepared 
  687. telTransferRej                    EQU        -10045                ; transfer request rejected 
  688. telCBErr                        EQU        -10046                ; call back feature not set previously 
  689. telConfLimitExceeded            EQU        -10047                ; attempt to exceed switch conference limits 
  690. telBadDNType                    EQU        -10050                ; DN type invalid 
  691. telBadPageID                    EQU        -10051                ; bad page ID specified
  692. telBadIntercomID                EQU        -10052                ; bad intercom ID specified 
  693. telBadFeatureID                    EQU        -10053                ; bad feature ID specified 
  694. telBadFwdType                    EQU        -10054                ; bad fwdType specified 
  695. telBadPickupGroupID                EQU        -10055                ; bad pickup group ID specified 
  696. telBadParkID                    EQU        -10056                ; bad park id specified 
  697. telBadSelect                    EQU        -10057                ; unable to select or deselect DN 
  698. telBadBearerType                EQU        -10058                ; bad bearerType specified 
  699. telBadRate                        EQU        -10059                ; bad rate specified 
  700. telDNTypeNotSupp                EQU        -10060                ; DN type not supported by tool 
  701. telFwdTypeNotSupp                EQU        -10061                ; forward type not supported by tool 
  702. telBadDisplayMode                EQU        -10062                ; bad display mode specified 
  703. telDisplayModeNotSupp            EQU        -10063                ; display mode not supported by tool 
  704. telNoCallbackRef                EQU        -10064                ; no call back reference was specified, but is required 
  705. telAlreadyOpen                    EQU        -10070                ; terminal already open 
  706. telStillNeeded                    EQU        -10071                ; terminal driver still needed by someone else 
  707. telTermNotOpen                    EQU        -10072                ; terminal not opened via TELOpenTerm 
  708. telCANotAcceptable                EQU        -10080                ; CA not "acceptable" 
  709. telCANotRejectable                EQU        -10081                ; CA not "rejectable" 
  710. telCANotDeflectable                EQU        -10082                ; CA not "deflectable" 
  711. telPBErr                        EQU        -10090                ; parameter block error, bad format 
  712. telBadFunction                    EQU        -10091                ; bad msgCode specified 
  713. ;    telNoTools            = -10101,           unable to find any telephone tools 
  714. telNoSuchTool                    EQU        -10102                ; unable to find tool with name specified 
  715. telUnknownErr                    EQU        -10103                ; unable to set config 
  716. telNoCommFolder                    EQU        -10106                ; Communications/Extensions ƒ not found 
  717. telInitFailed                    EQU        -10107                ; initialization failed 
  718. telBadCodeResource                EQU        -10108                ; code resource not found 
  719. telDeviceNotFound                EQU        -10109                ; device not found 
  720. telBadProcID                    EQU        -10110                ; invalid procID 
  721. telValidateFailed                EQU        -10111                ; telValidate failed 
  722. telAutoAnsNotOn                    EQU        -10112                ; autoAnswer in not turned on 
  723. telDetAlreadyOn                    EQU        -10113                ; detection is already turned on 
  724. telBadSWErr                        EQU        -10114                ; Software not installed properly 
  725. telBadSampleRate                EQU        -10115                ; incompatible sample rate 
  726. telNotEnoughdspBW                EQU        -10116                ; not enough real-time for allocation 
  727.  
  728. badComponentInstance            EQU        $80008001
  729. badComponentSelector            EQU        $80008002
  730.  
  731. ;Translation manager & Translation components
  732. invalidTranslationPathErr        EQU        -3025                ;Source type to destination type not a valid path
  733. couldNotParseSourceFileErr        EQU        -3026                ;Source document does not contain source type
  734. noTranslationPathErr            EQU        -3030
  735. badTranslationSpecErr            EQU        -3031
  736. noPrefAppErr                    EQU        -3032
  737.  
  738. buf2SmallErr                    EQU        -3101
  739. noMPPErr                        EQU        -3102
  740. ckSumErr                        EQU        -3103
  741. extractErr                        EQU        -3104
  742. readQErr                        EQU        -3105
  743. atpLenErr                        EQU        -3106
  744. atpBadRsp                        EQU        -3107
  745. recNotFnd                        EQU        -3108
  746. sktClosedErr                    EQU        -3109
  747. afpAccessDenied                    EQU        -5000
  748. afpAuthContinue                    EQU        -5001
  749. afpBadUAM                        EQU        -5002
  750. afpBadVersNum                    EQU        -5003
  751. afpBitmapErr                    EQU        -5004
  752. afpCantMove                        EQU        -5005
  753. afpDenyConflict                    EQU        -5006
  754. afpDirNotEmpty                    EQU        -5007
  755. afpDiskFull                        EQU        -5008
  756. afpEofError                        EQU        -5009
  757. afpFileBusy                        EQU        -5010
  758. afpFlatVol                        EQU        -5011
  759. afpItemNotFound                    EQU        -5012
  760. afpLockErr                        EQU        -5013
  761. afpMiscErr                        EQU        -5014
  762. afpNoMoreLocks                    EQU        -5015
  763.  
  764. afpNoServer                        EQU        -5016
  765. afpObjectExists                    EQU        -5017
  766. afpObjectNotFound                EQU        -5018
  767. afpParmErr                        EQU        -5019
  768. afpRangeNotLocked                EQU        -5020
  769. afpRangeOverlap                    EQU        -5021
  770. afpSessClosed                    EQU        -5022
  771. afpUserNotAuth                    EQU        -5023
  772. afpCallNotSupported                EQU        -5024
  773. afpObjectTypeErr                EQU        -5025
  774. afpTooManyFilesOpen                EQU        -5026
  775. afpServerGoingDown                EQU        -5027
  776. afpCantRename                    EQU        -5028
  777. afpDirNotFound                    EQU        -5029
  778. afpIconTypeError                EQU        -5030
  779. afpVolLocked                    EQU        -5031                ;Volume is Read-Only
  780. afpObjectLocked                    EQU        -5032                ;Object is M/R/D/W inhibited
  781. afpContainsSharedErr            EQU        -5033                ;the folder being shared contains a shared folder
  782. afpIDNotFound                    EQU        -5034
  783. afpIDExists                        EQU        -5035
  784.  
  785. afpDiffVolErr                    EQU        -5036
  786. afpCatalogChanged                EQU        -5037
  787. afpSameObjectErr                EQU        -5038
  788. afpBadIDErr                        EQU        -5039
  789. afpPwdSameErr                    EQU        -5040                ;someone tried to change their password to the same password on a mantadory password change
  790. afpPwdTooShortErr                EQU        -5041                ;the password being set is too short: there is a minimum length that must be met or exceeded
  791. afpPwdExpiredErr                EQU        -5042                ;the password being used is too old: this requires the user to change the password before log-in can continue
  792. afpInsideSharedErr                EQU        -5043                ;the folder being shared is inside a shared folder OR the folder contains a shared folder and is being moved into a shared folder OR the folder contains a shared folder and is being moved into the descendent of a shared folder.
  793. afpInsideTrashErr                EQU        -5044                ;the folder being shared is inside the trash folder OR the shared folder is being moved into the trash folder OR the folder is being moved to the trash and it contains a shared folder
  794. afpBadDirIDType                    EQU        -5060
  795. afpCantMountMoreSrvre            EQU        -5061
  796. afpAlreadyMounted                EQU        -5062
  797. afpSameNodeErr                    EQU        -5063
  798. ;Display Manager error codes (-6220...-6269)
  799. kDMGenErr                        EQU        -6220                ;Unexpected Error
  800. ; Mirroring-Specific Errors 
  801. kDMMirroringOnAlready            EQU        -6221                ;Returned by all calls that need mirroring to be off to do their thing.
  802. kDMWrongNumberOfDisplays        EQU        -6222                ;Can only handle 2 displays for now.
  803. kDMMirroringBlocked                EQU        -6223                ;DMBlockMirroring() has been called.
  804. kDMCantBlock                    EQU        -6224                ;Mirroring is already on, can’t Block now (call DMUnMirror() first).
  805. kDMMirroringNotOn                EQU        -6225                ;Returned by all calls that need mirroring to be on to do their thing.
  806. ; Other Display Manager Errors 
  807. kSysSWTooOld                    EQU        -6226                ;Missing critical pieces of System Software.
  808. kDMSWNotInitializedErr            EQU        -6227                ;Required software not initialized (eg windowmanager or display mgr).
  809. kDMDriverNotDisplayMgrAwareErr    EQU        -6228                ;Video Driver does not support display manager.
  810. kDMDisplayNotFoundErr            EQU        -6229                ;Could not find item (will someday remove).
  811. kDMNotFoundErr                    EQU        -6229                ;Could not find item.
  812. kDMDisplayAlreadyInstalledErr    EQU        -6230                ;Attempt to add an already installed display.
  813. kDMMainDisplayCannotMoveErr        EQU        -6231                ;Trying to move main display (or a display mirrored to it) 
  814. kDMNoDeviceTableclothErr        EQU        -6231                ;obsolete
  815. ;Gestalt error codes
  816. gestaltUnknownErr                EQU        -5550                ;value returned if Gestalt doesn't know the answer
  817. gestaltUndefSelectorErr            EQU        -5551                ;undefined selector was passed to Gestalt
  818. gestaltDupSelectorErr            EQU        -5552                ;tried to add an entry that already existed
  819. gestaltLocationErr                EQU        -5553                ;gestalt function ptr wasn't in sysheap
  820. ;PPC errors
  821. notInitErr                        EQU        -900                ;PPCToolBox not initialized
  822. nameTypeErr                        EQU        -902                ;Invalid or inappropriate locationKindSelector in locationName
  823. noPortErr                        EQU        -903                ;Unable to open port or bad portRefNum
  824. noGlobalsErr                    EQU        -904                ;The system is hosed, better re-boot
  825. localOnlyErr                    EQU        -905                ;Network activity is currently disabled
  826. destPortErr                        EQU        -906                ;Port does not exist at destination
  827. sessTableErr                    EQU        -907                ;Out of session tables, try again later
  828. noSessionErr                    EQU        -908                ;Invalid session reference number
  829. badReqErr                        EQU        -909                ;bad parameter or invalid state for operation
  830. portNameExistsErr                EQU        -910                ;port is already open (perhaps in another app)
  831. noUserNameErr                    EQU        -911                ;user name unknown on destination machine
  832.  
  833. userRejectErr                    EQU        -912                ;Destination rejected the session request
  834. noMachineNameErr                EQU        -913                ;user hasn't named his Macintosh in the Network Setup Control Panel
  835. noToolboxNameErr                EQU        -914                ;A system resource is missing, not too likely
  836. noResponseErr                    EQU        -915                ;unable to contact destination
  837. portClosedErr                    EQU        -916                ;port was closed
  838. sessClosedErr                    EQU        -917                ;session was closed
  839. badPortNameErr                    EQU        -919                ;PPCPortRec malformed
  840. noDefaultUserErr                EQU        -922                ;user hasn't typed in owners name in Network Setup Control Pannel
  841. notLoggedInErr                    EQU        -923                ;The default userRefNum does not yet exist
  842. noUserRefErr                    EQU        -924                ;unable to create a new userRefNum
  843. networkErr                        EQU        -925                ;An error has occured in the network, not too likely
  844. noInformErr                        EQU        -926                ;PPCStart failed because destination did not have inform pending
  845. authFailErr                        EQU        -927                ;unable to authenticate user at destination
  846. noUserRecErr                    EQU        -928                ;Invalid user reference number
  847. badServiceMethodErr                EQU        -930                ;illegal service type, or not supported
  848. badLocNameErr                    EQU        -931                ;location name malformed
  849. guestNotAllowedErr                EQU        -932                ;destination port requires authentication
  850. noMaskFoundErr                    EQU        -1000                ;Icon Utilties Error
  851.  
  852. dsBusError                        EQU        1                    ;bus error
  853. dsAddressErr                    EQU        2                    ;address error
  854. dsIllInstErr                    EQU        3                    ;illegal instruction error
  855. dsZeroDivErr                    EQU        4                    ;zero divide error
  856. dsChkErr                        EQU        5                    ;check trap error
  857. dsOvflowErr                        EQU        6                    ;overflow trap error
  858. dsPrivErr                        EQU        7                    ;privilege violation error
  859. dsTraceErr                        EQU        8                    ;trace mode error
  860. dsLineAErr                        EQU        9                    ;line 1010 trap error
  861. dsLineFErr                        EQU        10                    ;line 1111 trap error
  862. dsMiscErr                        EQU        11                    ;miscellaneous hardware exception error
  863. dsCoreErr                        EQU        12                    ;unimplemented core routine error
  864. dsIrqErr                        EQU        13                    ;uninstalled interrupt error
  865. dsIOCoreErr                        EQU        14                    ;IO Core Error
  866. dsLoadErr                        EQU        15                    ;Segment Loader Error
  867. dsFPErr                            EQU        16                    ;Floating point error
  868. dsNoPackErr                        EQU        17                    ;package 0 not present
  869. dsNoPk1                            EQU        18                    ;package 1 not present
  870. dsNoPk2                            EQU        19                    ;package 2 not present
  871.  
  872. dsNoPk3                            EQU        20                    ;package 3 not present
  873. dsNoPk4                            EQU        21                    ;package 4 not present
  874. dsNoPk5                            EQU        22                    ;package 5 not present
  875. dsNoPk6                            EQU        23                    ;package 6 not present
  876. dsNoPk7                            EQU        24                    ;package 7 not present
  877. dsMemFullErr                    EQU        25                    ;out of memory!
  878. dsBadLaunch                        EQU        26                    ;can't launch file
  879. dsFSErr                            EQU        27                    ;file system map has been trashed
  880. dsStknHeap                        EQU        28                    ;stack has moved into application heap
  881. negZcbFreeErr                    EQU        33                    ;ZcbFree has gone negative
  882. dsFinderErr                        EQU        41                    ;can't load the Finder error
  883. dsBadSlotInt                    EQU        51                    ;unserviceable slot interrupt
  884. dsBadSANEOpcode                    EQU        81                    ;bad opcode given to SANE Pack4
  885. dsBadPatchHeader                EQU        83                    ;SetTrapAddress saw the “come-from” header
  886. menuPrgErr                        EQU        84                    ;happens when a menu is purged
  887. dsMBarNFnd                        EQU        85                    ;Menu Manager Errors
  888. dsHMenuFindErr                    EQU        86                    ;Menu Manager Errors
  889. dsWDEFNotFound                    EQU        87                    ;could not load WDEF
  890. dsCDEFNotFound                    EQU        88                    ;could not load CDEF
  891. dsMDEFNotFound                    EQU        89                    ;could not load MDEF
  892.  
  893. dsNoFPU                            EQU        90                    ;an FPU instruction was executed and the machine doesn’t have one
  894. dsNoPatch                        EQU        98                    ;Can't patch for particular Model Mac
  895. dsBadPatch                        EQU        99                    ;Can't load patch resource
  896. dsParityErr                        EQU        101                    ;memory parity error
  897. dsOldSystem                        EQU        102                    ;System is too old for this ROM
  898. ds32BitMode                        EQU        103                    ;booting in 32-bit on a 24-bit sys
  899. dsNeedToWriteBootBlocks            EQU        104                    ;need to write new boot blocks
  900. dsNotEnoughRAMToBoot            EQU        105                    ;must have at least 1.5MB of RAM to boot 7.0
  901. dsBufPtrTooLow                    EQU        106                    ;bufPtr moved too far during boot
  902. dsReinsert                        EQU        30                    ;request user to reinsert off-line volume
  903. shutDownAlert                    EQU        42                    ;handled like a shutdown error
  904. dsShutDownOrRestart                EQU        20000                ;user choice between ShutDown and Restart
  905. dsSwitchOffOrRestart            EQU        20001                ;user choice between switching off and Restart
  906. dsForcedQuit                    EQU        20002                ;allow the user to ExitToShell, return if Cancel
  907. dsRemoveDisk                    EQU        20003                ;request user to remove disk from manual eject drive
  908. dsDirtyDisk                        EQU        20004                ;request user to return a manually-ejected dirty disk
  909. dsShutDownOrResume                EQU        20109                ;allow user to return to Finder or ShutDown
  910. dsSCSIWarn                        EQU        20010                ;Portable SCSI adapter warning.
  911. ;System Errors that are used after MacsBug is loaded to put up dialogs since these should not cause MacsBug to stop, they must be in the range (30, 42, 16384-32767) negative numbers add to an existing dialog without putting up a whole new dialog
  912. dsMacsBugInstalled                EQU        -10                    ;say “MacsBug Installed”
  913. dsDisassemblerInstalled            EQU        -11                    ;say “Disassembler Installed”
  914. dsExtensionsDisabled            EQU        -13                    ;say “Extensions Disabled”
  915. dsGreeting                        EQU        40                    ;welcome to Macintosh greeting
  916. dsSysErr                        EQU        32767                ;general system error
  917. ;old names here for compatibility’s sake
  918. WDEFNFnd                        EQU        dsWDEFNotFound
  919.  
  920. CDEFNFnd                        EQU        dsCDEFNotFound
  921. dsNotThe1                        EQU        31                    ;not the disk I wanted
  922. dsBadStartupDisk                EQU        42                    ;unable to mount boot volume (sad Mac only)
  923. dsSystemFileErr                    EQU        43                    ;can’t find System file to open (sad Mac only)
  924. dsHD20Installed                    EQU        -12                    ;say “HD20 Startup”
  925. mBarNFnd                        EQU        -126                ;system error code for MBDF not found
  926. hMenuFindErr                    EQU        -127                ;could not find HMenu's parent in MenuKey
  927. userBreak                        EQU        -490                ;user debugger break
  928. strUserBreak                    EQU        -491                ;user debugger break; display string on stack
  929. exUserBreak                        EQU        -492                ;user debugger break; execute debugger commands on stack
  930.  
  931. ; Reserved values for internal "warnings".
  932.  
  933. ; CFM error codes 
  934. fragNoErr                        EQU        0
  935. fragContextNotFound                EQU        -2800                ; contextID was not valid 
  936. fragConnectionIDNotFound        EQU        -2801                ; connecionID was not valid 
  937. fragSymbolNotFound                EQU        -2802                ; symbol was not found in connection 
  938. fragSectionNotFound                EQU        -2803                ; section was not found 
  939. fragLibNotFound                    EQU        -2804                ; library name not found in Frag registry 
  940. fragDupRegLibName                EQU        -2805                ; registered name already in use 
  941. fragFormatUnknown                EQU        -2806                ; fragment container format unknown 
  942. fragHadUnresolveds                EQU        -2807                ; loaded fragment had hard unresolved imports 
  943. fragUnused1                        EQU        -2808                ; unused 
  944. fragNoMem                        EQU        -2809                ; out of memory for interal bookkeeping 
  945. fragNoAddrSpace                    EQU        -2810                ; out of memory in user's address space for loadable section 
  946. fragNoContextIDs                EQU        -2811                ; no more context id’s 
  947. fragObjectInitSeqErr            EQU        -2812                ; order error during user initialization function invocation 
  948. fragImportTooOld                EQU        -2813                ; import library was too old and therefore incompatible 
  949. fragImportTooNew                EQU        -2814                ; import library was too new and therefore incompatible 
  950. fragInitLoop                    EQU        -2815                ; circularity detected in mandatory initialization order 
  951. fragInitRtnUsageErr                EQU        -2816                ; boot library has initialization routine 
  952. fragLibConnErr                    EQU        -2817                ; error connecting to library (error occured in sub prepare) 
  953. fragMgrInitErr                    EQU        -2818                ; error in initailization of this manager 
  954. fragConstErr                    EQU        -2819                ; internal inconstistancy 
  955. fragCorruptErr                    EQU        -2820                ; fragment container corrupted (known format) 
  956. fragUserInitProcErr                EQU        -2821                ; user intialization routine did not return noErr 
  957. fragAppNotFound                    EQU        -2822                ; no application found in cfrg (for Process Manager) 
  958. fragArchError                    EQU        -2823                ; fragment targeted for an unacceptable architecture 
  959. fragInvalidFragmentUsage        EQU        -2824                ; ie: an application's main fragment had no entry point
  960.                                                             ; - or - an accerated resource had no entry point,
  961.                                                             ;   or it had a termination routine, etc... 
  962. fragLastErrCode                    EQU        -2899                ; last reserved error code number 
  963.  
  964. ; Drag Manager error codes 
  965. badDragRefErr                    EQU        -1850                ; unknown drag reference 
  966. badDragItemErr                    EQU        -1851                ; unknown drag item reference 
  967. badDragFlavorErr                EQU        -1852                ; unknown flavor type 
  968. duplicateFlavorErr                EQU        -1853                ; flavor type already exists 
  969. cantGetFlavorErr                EQU        -1854                ; error while trying to get flavor data 
  970. duplicateHandlerErr                EQU        -1855                ; handler already exists 
  971. handlerNotFoundErr                EQU        -1856                ; handler not found 
  972. dragNotAcceptedErr                EQU        -1857                ; drag was not accepted by receiver 
  973.  
  974.  
  975. ; Mixed Mode error codes 
  976. mmInternalError                    EQU        -2526
  977.  
  978. ; error codes 
  979. tsmComponentNoErr                EQU        0                    ; component result = no error 
  980. tsmUnsupScriptLanguageErr        EQU        -2500
  981. tsmInputMethodNotFoundErr        EQU        -2501
  982. tsmNotAnAppErr                    EQU        -2502                ; not an application error 
  983. tsmAlreadyRegisteredErr            EQU        -2503                ; want to register again error 
  984. tsmNeverRegisteredErr            EQU        -2504                ; app never registered error (not TSM aware) 
  985. tsmInvalidDocIDErr                EQU        -2505                ; invalid TSM documentation id 
  986. tsmTSMDocBusyErr                EQU        -2506                ; document is still active 
  987. tsmDocNotActiveErr                EQU        -2507                ; document is NOT active 
  988. tsmNoOpenTSErr                    EQU        -2508                ; no open text service 
  989. tsmCantOpenComponentErr            EQU        -2509                ; can’t open the component 
  990. tsmTextServiceNotFoundErr        EQU        -2510                ; no text service found 
  991. tsmDocumentOpenErr                EQU        -2511                ; there are open documents 
  992. tsmUseInputWindowErr            EQU        -2512                ; not TSM aware because we are using input window 
  993. tsmTSHasNoMenuErr                EQU        -2513                ; the text service has no menu 
  994. tsmTSNotOpenErr                    EQU        -2514                ; text service is not open 
  995. tsmComponentAlreadyOpenErr        EQU        -2515                ; text service already opened for the document 
  996. tsmInputMethodIsOldErr            EQU        -2516                ; returned by GetDefaultInputMethod 
  997. tsmScriptHasNoIMErr                EQU        -2517                ; script has no imput method or is using old IM 
  998. tsmUnsupportedTypeErr            EQU        -2518                ; unSupported interface type error 
  999. tsmUnknownErr                    EQU        -2519                ; any other errors 
  1000.  
  1001. errOffsetInvalid                EQU        -1800
  1002. errOffsetIsOutsideOfView        EQU        -1801
  1003. errTopOfDocument                EQU        -1810
  1004. errTopOfBody                    EQU        -1811
  1005. errEndOfDocument                EQU        -1812
  1006. errEndOfBody                    EQU        -1813
  1007.  
  1008.  
  1009. rcDBNull                        EQU        -800
  1010. rcDBValue                        EQU        -801
  1011. rcDBError                        EQU        -802
  1012. rcDBBadType                        EQU        -803
  1013. rcDBBreak                        EQU        -804
  1014. rcDBExec                        EQU        -805
  1015. rcDBBadSessID                    EQU        -806                ; Database access error codes 
  1016. rcDBBadSessNum                    EQU        -807                ; bad session number for DBGetConnInfo 
  1017. rcDBBadDDEV                        EQU        -808                ; bad ddev specified on DBInit 
  1018. rcDBAsyncNotSupp                EQU        -809                ; ddev does not support async calls 
  1019. rcDBBadAsyncPB                    EQU        -810                ; tried to kill a bad pb 
  1020. rcDBNoHandler                    EQU        -811                ; no app handler for specified data type 
  1021. rcDBWrongVersion                EQU        -812                ; incompatible versions 
  1022. rcDBPackNotInited                EQU        -813                ; attempt to call other routine before InitDBPack 
  1023.  
  1024. ; ENET error codes 
  1025. eLenErr                            EQU        -92                    ;Length error ddpLenErr
  1026. eMultiErr                        EQU        -91                    ;Multicast address error ddpSktErr
  1027.  
  1028. ; DS Errors which are specific to the new runtime model introduced with PowerPC 
  1029. dsBadLibrary                    EQU        1010                ; Bad shared library 
  1030. dsMixedModeFailure                EQU        1011
  1031.  
  1032. ;
  1033. ; pascal void SysError(short errorCode)
  1034. ;
  1035.     IF ¬ GENERATINGCFM THEN
  1036.         ; parameters: 
  1037.         ;     errorCode         => D0
  1038.         _SysError:    OPWORD    $A9C9
  1039.     ELSE
  1040.         IMPORT_CFM_FUNCTION    SysError
  1041.     ENDIF
  1042.  
  1043.     ENDIF ; __ERRORS__
  1044.